import babel from "rollup-plugin-babel";
import serve from "rollup-plugin-serve";
export default {
  input: "./src/index.js", //打包的入口文件
  output: {
    file: "dist/vue.js", //出口文件
    format: "umd", //在window上  Vue
    name: "Vue",
    sourcemap: true, //支持映射
  },
  plugins: [
    babel({
      exclude: "node_modules/**",
    }),
    serve({
        port:3000,
        contentBase:'',//空字符串 表示当前目录
        openPage:'./index.html'
    })
  ],
  
};
